        <div class="span3">
                <div class="sidebar-nav">	
				  <?php  if($_SESSION['admindata']['q']=='网站设置' || $_SESSION['admindata']['q']=='最高权限'){?>				
                  <div class="nav-header" data-toggle="collapse" data-target="#menu1">				  
				  <i class="icon-dashboard"></i>网站设置
				  </div>
                    <ul id="menu1" class="nav nav-list collapse in">
					<li ><a href="set.php">参数设置</a></li>
						<li ><a href="adlist.php">广告设置</a></li>
						
						
						<!--
						<li ><a href="tpl.php">模板管理</a></li>
						-->
                    </ul>
				<?php }?>					
				  <?php  if($_SESSION['admindata']['q']=='CPS管理' || $_SESSION['admindata']['q']=='最高权限'){?>	
<!--				  
				  <div class="nav-header" data-toggle="collapse" data-target="#cps">				  
				  <i class="icon-dashboard"></i>CPS管理			  
				  </div>
                    <ul id="cps" class="nav nav-list collapse in">
						<li ><a href="#">开发中</a></li>
						<li ><a href="#">开发中</a></li>
						<li ><a href="#">开发中</a></li>
                    </ul>	
-->					
				<?php }?>	

				  <?php  if($_SESSION['admindata']['q']=='会员管理' || $_SESSION['admindata']['q']=='最高权限'){?>					
				  <div class="nav-header" data-toggle="collapse" data-target="#menu3">				  
				  <i class="icon-dashboard"></i>会员管理			  
				  </div>
                    <ul id="menu3" class="nav nav-list collapse in">
						<li ><a href="user.php">会员管理</a></li>
						<!--<li ><a href="tx.php">提现管理</a></li>-->
                    </ul>
				  <?php }?>	
				  
				  <?php  if($_SESSION['admindata']['q']=='分享文章' || $_SESSION['admindata']['q']=='最高权限'){?>					
				  <div class="nav-header" data-toggle="collapse" data-target="#menu2">				  
				  <i class="icon-dashboard"></i>分享文章		  
				  </div>	
                    <ul id="menu2" class="nav nav-list collapse in">
					    <li ><a href="newslist.php">新闻管理</a></li>
						<li ><a href="typelist.php">分类管理</a></li>
						<li ><a href="add_article.php">文章发布</a></li>
						
						<li ><a href="all_article.php">文章管理</a></li>
                    </ul>
				   <?php }?>
                   
                   
                   		  <?php  if($_SESSION['admindata']['q']=='任务管理' || $_SESSION['admindata']['q']=='最高权限'){?>					
				  <div class="nav-header" data-toggle="collapse" data-target="#menu2">				  
				  <i class="icon-dashboard"></i>任务管理		  
				  </div>	
                    <ul id="menu2" class="nav nav-list collapse in">
				 
						<li ><a href="add_rw.php">任务发布</a></li>
				 <li ><a href="all_rwsh.php">任务审核</a></li>
						<li ><a href="all_rw.php">任务管理</a></li>
                    </ul>
				   <?php }?>					   
				  <?php  if($_SESSION['admindata']['q']=='统计报表' || $_SESSION['admindata']['q']=='最高权限'){?>					
				  <div class="nav-header" data-toggle="collapse" data-target="#menu2">				  
				  <i class="icon-dashboard"></i>统计报表		  
				  </div>	
                    <ul id="menu2" class="nav nav-list collapse in">
						<li ><a href="refererlist.php"><font color=red>访问统计</font></a></li>
						<li ><a href="tongjilist.php">日段统计</a></li>
						<li ><a href="koulist.php">扣量统计</a></li>
                    </ul>
				   <?php }?>					   
				  
				  <?php  if($_SESSION['admindata']['q']=='财务管理' || $_SESSION['admindata']['q']=='最高权限'){?>
				  <div class="nav-header" data-toggle="collapse" data-target="#menu4">				  
				  <i class="icon-dashboard"></i>财务管理			  
				  </div>
                    <ul id="menu4" class="nav nav-list collapse in">
						<li ><a href="txlist0.php">等待提现</a></li>
						<li ><a href="txlist1.php">已经提现</a></li>
						<li ><a href="txlist2.php">拒绝支付</a></li>
                    </ul>	
				  <?php }?>
                  <div class="nav-header" data-toggle="collapse" data-target="#menu5">				  
				  <i class="icon-dashboard"></i>积分发布</div>
                      <ul id="menu5" class="nav nav-list collapse in">
						<li ><a href="add_task4.php">积分发布</a></li>
                        <li ><a href="all_task4.php">积分管理</a></li>
                                                <li ><a href="sh_task4.php">积分审核</a></li>
                                                
						<li ><a href="tasklist4.php">审核记录</a></li>
                    </ul> 
            </div>
        </div>
<?php
$today=date("Y-m-d",time());$yestoday=date("Y-m-d",strtotime("-1 day"));$today_ip=$mysql->query("select * from `tongjidata` where `day`='{$today}' limit 1");$yestoday_ip=$mysql->query("select * from `tongjidata` where `day`='{$yestoday}' limit 1");?>
<script>
$(document).ready(function(){
	$("#today_ip").html(<?php echo $today_ip[0]['ip']?>);
	$("#yestoday_ip").html(<?php echo $yestoday_ip[0]['ip']?>);
});
</script>